import 'package:get/get.dart';

class EventService extends GetxService {
  static const String EventRefresh = 'refresh';
  static const String EventUpdate = 'update';
  static const String EventLaunch = 'launch';

  static const String ModuleNickname = 'Nickname';
  static const String ModuleWithdrawList = 'WithdrawList';

  static EventService get to => Get.find();
  final message = ''.obs;

  void sendMessage(String msg, [bool withTime = true]) {
    if (withTime) {
      message.value = '${msg}_${DateTime.now().millisecondsSinceEpoch}';
    } else {
      message.value = msg;
    }
  }
}
